//
//  NewThirdDetailsViewController.m
//  项目A --半糖
//
//  Created by romana on 16/5/25.
//  Copyright © 2016年 romana. All rights reserved.
//

#import "NewThirdDetailsViewController.h"

@interface NewThirdDetailsViewController ()

@end

@implementation NewThirdDetailsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor purpleColor];
    NSLog(@"%@",self.url);
    
    //
    //
    //    [self.view addSubview:view];
    //
    
    
    UIWebView *webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height - 49)];
    [webView setUserInteractionEnabled:YES];//是否支持交互
    //[webView setDelegate:self];
    //webView.delegate=self;
    [webView setOpaque:NO];//opaque是不透明的意思
    [webView setScalesPageToFit:YES];//自动缩放以适应屏幕
    [self.view addSubview:webView];
 //   NSString *string = [NSString stringWithFormat:@"http://mrobot.pconline.com.cn/v2/itbbs/topics/%@?pageNo=1&picRule=2&authorId=0&topicTemplate=3.6.0&app=pconlinebrowser&appVersion=4.5.0&size=18",self.topicId];
    //加载网页的方式
    //1.创建并加载远程网页
    NSURL *myurl = [NSURL URLWithString:self.url];
    [webView loadRequest:[NSURLRequest requestWithURL:myurl]];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
